package com.kotlin.android.app.ui.fragment

import com.android.app.router.event.EventLoginState
import com.kotlin.android.app.R
import com.kotlin.android.app.databinding.FragmentCaiFuBinding
import com.kotlin.android.core.BaseVMFragment
import com.kotlin.android.core.BaseViewModel
import com.kotlin.android.ktx.ext.immersive.immersive
import com.kotlin.android.router.bus.ext.observe
import com.kotlin.android.media.image.coil.loadImage


class CaiFuFragment : BaseVMFragment<BaseViewModel, FragmentCaiFuBinding>() {


    companion object {
        fun newInstance() =
            CaiFuFragment()
    }

    override fun initTheme() {
        super.initTheme()
        immersive()
//            .transparentStatusBar(isFitsSystemWindows = false)
            .statusBarDarkFont(true)
    }

    override fun initView() {
        mBinding?.imageIv?.loadImage(R.drawable.caifu)
    }

    override fun startObserve() {
        observe(EventLoginState::class.java) {
//            mBinding?.imageIv?.loadImage(R.drawable.default_image)
        }
    }

    override fun initData() {
    }
}